package demo_table.frame;

import com.lovo.netCRM.component.LovoTable;
import demo_table.util.DataUtil;

import javax.swing.*;

public class ShowDataPane extends JPanel {

    LovoTable lovoTable;

    public ShowDataPane(){
        this.setLayout(null);

        lovoTable =new LovoTable(this,
                new String[]{"学生编号","姓名","性别","年龄","所在班级"},
                new String[]{"studentId","name","gender","age","classBean.name"},
                "studentId");

        lovoTable.setSizeAndLocation(0, 0, 800, 400);

        lovoTable.updateLovoTable(DataUtil.getAllStduent());
    }

    public LovoTable getLovoTable(){
        return this.lovoTable;
    }
}
